<?php

$this->breadcrumbs = array(
	$model->label(2) => array('admin'),
	GxHtml::valueEx($model),
);

$this->menu=array(
	array('label'=>AdminModule::t('Добавить') . ' ' . $model->label(), 'url'=>array('create')),
	array('label'=>AdminModule::t('Изменить') . ' ' . $model->label(), 'url'=>array('update', 'id' => $model->id)),
//	array('label'=>AdminModule::t('Удалить') . ' ' . $model->label(), 'url'=>'#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>AdminModule::t('Список') . ' ' . $model->label(2), 'url'=>array('admin')),
);
?>

<h1><?php echo AdminModule::t('Просмотр') . ' ' . GxHtml::encode($model->label()); ?></h1>
<p class="sub_header_view">
	<label><?php echo AdminModule::t('Запись:') . ' ' . GxHtml::encode(GxHtml::valueEx($model)); ?></label>
</p>

<?php $this->widget('zii.widgets.CDetailView', array(
	'data' => $model,
	'attributes' => array(
'id',
'crdate:date',
array(
			'name' => 'firm',
			'type' => 'raw',
			'value' => $model->firm !== null ? GxHtml::link(GxHtml::encode(GxHtml::valueEx($model->firm)), array('firms/view', 'id' => GxActiveRecord::extractPkValue($model->firm, true))) : null,
			),
array(
			'name' => 'service_type',
			'type' => 'raw',
			'value' => $model->rubric !== null ? Controller::getServiceType($model->service_type) : null,
			),
'rubric',
'category',
	),
)); ?>

